package org.jeecg.modules.wms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.wms.entity.FinishedGoodsInboundDetail;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 成品入库单VO
 */
@Data
@ApiModel(value = "FinishedGoodsInboundVO", description = "成品入库单VO")
public class FinishedGoodsInboundVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "入库单号")
    private String inboundNo;

    @ApiModelProperty(value = "销售订单ID")
    private String orderId;

    @ApiModelProperty(value = "销售订单号")
    private String orderNo;

    @ApiModelProperty(value = "生产计划ID")
    private String productionPlanId;

    @ApiModelProperty(value = "生产任务ID")
    private String productionTaskId;

    @ApiModelProperty(value = "入库日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inboundDate;

    @ApiModelProperty(value = "仓库ID")
    private String warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "总入库数量")
    private Integer totalQuantity;

    @ApiModelProperty(value = "入库状态：0-待入库，1-部分入库，2-已完成")
    private Integer inboundStatus;

    @ApiModelProperty(value = "入库状态名称")
    private String inboundStatusName;

    @ApiModelProperty(value = "操作员ID")
    private String operatorId;

    @ApiModelProperty(value = "操作员姓名")
    private String operatorName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    private String createBy;

    private String updateBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

    @ApiModelProperty(value = "入库明细列表")
    private List<FinishedGoodsInboundDetail> detailList;

    // 查询条件字段
    @ApiModelProperty(value = "开始日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private Integer delFlag;
}
